package com.aaa.dimite;

import lombok.Data;

@Data
public class Fans {
    private String name;
}

@Data
class Company {
    private String name;
}

@Data
class Star {
    private String name;
}

@Data
 class Agent {
    private Star star;
    private Fans fans;
    private Company company;
    //和粉丝见面的方法
    public void meeting(){
        System.out.println(star.getName() + "和粉丝" + fans.getName() + "见面");
    }


    //和媒体公司洽谈的方法
    public void business(){
        System.out.println(star.getName() + "和" + company.getName() + "洽谈");
    }


}

